package com.ht.module.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import java.io.Serializable;


/**
 * <p>
 * 字典项表
 * </p>
 *
 * @author Auto-generator
 * @since 2021-05-19
 */

@TableName("sys_dict_item")
@Data
public class SysDictItem implements Serializable{
        @Schema(description ="主键")
        @TableId
        private String id;

        @Schema(description ="字典id")
        @NotBlank
        private String dictId;

        @Schema(description ="字典项文本")
        @NotBlank
        private String label;

        @Schema(description ="字典项值")
        @NotBlank
        private String value;

        @Schema(description ="描述")
        @TableField(value = "`desc`")
        private String desc;

        @Schema(description ="排序")
        private Integer sort;
}
